package com.cib.ccc.poc.data.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.cib.ccc.poc.data.bean.BatchBean;

@Repository
public class BatchDAO extends BaseDAO{	
	
	public void save(BatchBean bean)
	{
		getHibernateTemplate().saveOrUpdate(bean);
	}
	
	public BatchBean findByID(String id)
	{
		BatchBean bean = getHibernateTemplate().get(BatchBean.class,id); 
		return bean;
	}
}
